<%@ page pageEncoding="utf-8"%>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../css/xadmin.css">
  <link rel="stylesheet" type="text/css" href="../lib/layui/css/layui.css">
  <script src="../js/jquery.min.js"></script>
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body class="form-wrap">
          
<div class=" layui-fluid  layui-bg-white">
<blockquote class="layui-elem-quote">上传界面</blockquote>
  <%
  String path = request.getContextPath();
  String basePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  session.setAttribute("basePath",basePath);
  String flag = (String)request.getAttribute("info");
  if(flag=="success"){
  %>
 <script>
   alert("上传成功");
 </script>
  <%
    }
  %>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>指定允许上传的文件类型</legend>
</fieldset>
  <form method="post" action="/Personnel/file/upload"  enctype="multipart/form-data" name="form1">
    <input type="file" name="uploadFile">
    <input type="submit" class="layui-btn" id="test3" value="上传"  />
  </form>
</div>
</body>
</html>